package org.dairy.farms.nandana.core.logic;

import org.dairy.farms.model.Farm;
import org.dairy.farms.model.Livestock;
import org.dairy.farms.nandana.web.view.FarmExpenseView;

import java.util.List;

/**
 * Created by IntelliJ IDEA.
 * User: gduggira
 * Date: Jun 16, 2011
 * Time: 4:11:45 PM
 */
public interface FarmManagementLogic {
    public List<Farm> getAllFarms();

    public List<Farm> getUserFarmLivestockListCount();

    public List<Livestock> getLivestockOfFarm(Long farmId, int page, int start, int limit);

    public Long getLivestockOfFarmCount(Long farmId);

    List<Livestock> getFemaleLivestockOfFarm(Long farmId);

    long getFemaleLivestockOfFarmCount(Long farmId);

    List<Livestock> getMaleLivestockOfFarm(Long farmId);

    long getMaleLivestockOfFarmCount(Long farmId);

    Farm updateFarmExpense(FarmExpenseView farmExpenseView);
}
